<?php
	class List_deal_top_seller extends CI_Controller
	{
		public function __construct()
		{
			parent::__construct();
			if (!isset($_SESSION)) {
			    session_start();
			    session_regenerate_id();
			}
			$this->load->helper("url");
			
		}
		public function index()
		{
			$data=array();
			$cid=0;
			if(isset($_REQUEST['cid']))
				$cid=$_REQUEST['cid'];
			$data['cid']=$cid;
			
			$this->load->model("mcategory");
			$data['list_category']=$this->mcategory->list_category();
			
			$this->load->model("mdeal");
			$data['list_deal']=$this->mdeal->list_deal_top_seller();
			
			$data['action']="list_deal_top_seller";
			
			$this->load->view("main_template", $data);
		}

	}
?>